package com.hongtai.mkums.util;

/**
 * 重新springmvc文件上传
 */
public class CommonsMultipartResolver extends org.springframework.web.multipart.commons.CommonsMultipartResolver {

    @Override
    public boolean isMultipart(javax.servlet.http.HttpServletRequest request) {
        String uri = request.getRequestURI();
        // 过滤使用百度UEditor的URI
        if (uri.indexOf("myueditor/config") > 0) { // 此处拦截路径即为上面编写的controller路径
            return false;
        }
        return super.isMultipart(request);
    }
}
